package com.koron.order.maintain.service;

import com.koron.common.core.business.common.service.CommonService;
import com.koron.order.maintain.bean.entity.MaintainItemPo;
import com.koron.order.maintain.bean.vo.MaintainItemVo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * (MaintainItem)表服务接口
 *
 * @author zhouj
 * @since 2021-09-23 15:53:22
 */
public interface MaintainItemService extends CommonService {

    int insert(SessionFactory factory, MaintainItemPo maintainItem);

    int update(SessionFactory factory, MaintainItemPo maintainItem);

    int deleteById(SessionFactory factory, String id);

    MaintainItemPo queryById(SessionFactory factory, String id);

    List<MaintainItemPo> queryList(SessionFactory factory, MaintainItemPo maintainItem);

    List<MaintainItemVo> queryByEquipmentId(SessionFactory factory, String orderId, String maintainEquipmentId);

    int insertBatch(SessionFactory factory, List<MaintainItemPo> maintainItems);
}
